import request from "@/utils/request";

export function getWorkOrderByPage(query) {
  return request({
    url: `/system/workOrder/getWorkOrderByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addWorkOrder(query) {
  return request({
    url: `/system/workOrder/addWorkOrder`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delWorkOrder(query) {
  return request({
    url: `/system/workOrder/delWorkOrder`,
    method: "post",
    data: query,
  });
}

export function updateWorkOrder(query) {
  return request({
    url: `/system/workOrder/updateWorkOrder`,
    method: "post",
    data: query,
  });
}

export function getWorkOrderByCode(query) {
  return request({
    url: `/system/workOrder/getWorkOrderByCode`,
    method: "post",
    data: query,
  });
}
